package io.adrainty.bolee.points.feign;

import io.adrainty.bolee.framework.commons.basic.ResultDTO;
import io.adrainty.bolee.framework.commons.log.LogBusinessEntity;
import io.adrainty.bolee.points.hystrix.BusinessLogHystrix;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * <p>IBusinessLogFeign</p>
 *
 * @author AdRainty
 * @version V1.0.0
 * @description 业务统计
 * @since 2025/7/30 15:30:48
 */

@FeignClient(name = "points-web", path = "/business-log-feign", fallback = BusinessLogHystrix.class)
public interface IBusinessLogFeign {

    @PostMapping("/create-business-log")
    ResultDTO<Boolean> createBusinessLog(@RequestBody LogBusinessEntity logBusinessEntity);

}
